#!/bin/sh
echo 'Locate for user ...'
until who | grep "$1" > untiltest.txt
do
 sleep 60
done

# In chuong bao

echo -e \\a

# display login username
echo "*** $1 has login***"


da chay

#!/bin/sh
echo 'Locate for user ...'
until who | grep "$1" > untiltest.txt
do
 sleep 2
done

# In chuong bao

echo -e \\a

# display login username
echo "*** $1 has login***"